package cn.source.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.source.common.annotation.Excel;
import cn.source.common.core.domain.BaseEntity;

/**
 * 数据库连接对象 db_conn
 * 
 * @author sourcebyte.vip
 * @date 2025-02-21
 */
public class DbConn
{
    private static final long serialVersionUID = 1L;

    /** 连接的名称 */
    @Excel(name = "连接的名称")
    private String connName;

    /** 连接的url */
    @Excel(name = "连接的url")
    private String connUrl;

    /** 数据库连接密码 */
    @Excel(name = "数据库连接密码")
    private String dbPass;

    /** 数据库连接名称 */
    @Excel(name = "数据库连接名称")
    private String dbUser;

    private ConnInfo connInfo;

    public ConnInfo getConnInfo() {
        return connInfo;
    }

    public void setConnInfo(ConnInfo connInfo) {
        this.connInfo = connInfo;
    }

    /** 主键 */
    @Excel(name = "主键")
    private Long id;

    public void setConnName(String connName) 
    {
        this.connName = connName;
    }

    public String getConnName() 
    {
        return connName;
    }
    public void setConnUrl(String connUrl) 
    {
        this.connUrl = connUrl;
    }

    public String getConnUrl() 
    {
        return connUrl;
    }
    public void setDbPass(String dbPass) 
    {
        this.dbPass = dbPass;
    }

    public String getDbPass() 
    {
        return dbPass;
    }
    public void setDbUser(String dbUser) 
    {
        this.dbUser = dbUser;
    }

    public String getDbUser() 
    {
        return dbUser;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("connName", getConnName())
            .append("connUrl", getConnUrl())
            .append("dbPass", getDbPass())
            .append("dbUser", getDbUser())
            .append("id", getId())
            .toString();
    }
}
